#pragma once

#include "../windows_service/board/port.h"
#include "../windows_service/board/windows2mcu.h"

// 不同温度下电池容量表
typedef struct {
  int8  temp;
  uint8 battery_capacity_percent;
} battery_capacity_table_t;

void   temp_capacity_curve_init(battery_capacity_table_t* table, uint8 table_size);
uint8  temp_capacity_curve_cur_qmax_cal(int8 temp);
uint16 temp_capacity_curve_real_cur_qmax_cal(int8 temp_now, uint16 cur_qmax);